package com.example.wm.SanWar.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wm.SanWar.entity.AlliesRecodSheet;
import com.example.wm.SanWar.mapper.AlliesRecodeSheetMapper;
import com.example.wm.SanWar.service.AlliesRecodeSheetService;
import com.example.wm.utils.TsyUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public  class AlliesRecodeSheetImpl extends ServiceImpl<AlliesRecodeSheetMapper, AlliesRecodSheet> implements AlliesRecodeSheetService {
    @Resource
    private AlliesRecodeSheetService alliesRecodeSheetService;
    @Resource
    private AlliesRecodeSheetMapper alliesRecodeSheetMapper;
    @Resource
    private TsyUtils tsyUtils;
    public void insertList(String name,String text){

        try {  AlliesRecodSheet a=new AlliesRecodSheet();
            a.setCreatetime(tsyUtils.getnowtime());
//            a.setCreateUserid( BaseContext.getCurrentId().intValue());
            a.setType(name+text);
            alliesRecodeSheetMapper.insert(a);

                 }catch (NullPointerException e){
                     System.out.println("eeeeeeee"+e);
                 }

    }


}
